/* Layout */
import Layout from '@neu/biz-core/layout'

export default [
  {
    path: '/auth',
    name: 'auth',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '认证系统',
      icon: 'peoples',
      module: 'auth',
      code: 'auth_menu_parent'
    },
    component: Layout,
    children: [
      {
        path: 'users',
        name: 'auth_users',
        meta: {
          title: '用户管理',
          icon: 'right-arrow',
          module: 'auth',
          code: 'auth_menu_users'
        },
        component: () => import('@neu/auth-ui/views/users')
      },
      {
        path: 'roles',
        name: 'auth_roles',
        meta: {
          title: '角色管理',
          icon: 'right-arrow',
          module: 'auth',
          code: 'auth_menu_roles'
        },
        component: () => import('@neu/auth-ui/views/roles')
      },
      {
        path: 'organizations',
        name: 'auth_organizations',
        meta: {
          title: '部门管理',
          icon: 'right-arrow',
          module: 'auth',
          code: 'auth_menu_organizations'
        },
        component: () => import('@neu/auth-ui/views/organizations')
      },
      {
        path: 'permissions',
        name: 'auth_permissions',
        meta: {
          title: '权限管理',
          icon: 'right-arrow',
          module: 'auth',
          code: 'auth_menu_permissions'
        },
        component: () => import('@neu/auth-ui/views/permissions')
      },
      {
        path: 'dingdingconfig',
        name: 'auth_dingdingconfig',
        meta: {
          title: '钉钉应用配置',
          icon: 'right-arrow',
          module: 'auth',
          code: 'auth_menu_dingdingconfig'
        },
        component: () => import('@neu/auth-ui/views/dingding')
      }
    ]
  }
]

